package com.ziyueyuwen.xiniao.bean.product;

import com.ziyueyuwen.xiniao.enums.ProductClassRuleEnum;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * Created by wancheng on 2019/4/4.
 */
public class SaleCourseDetailsParamQuery {
    /**
     * 课程id
     */
    @NotNull
    @Min(value = 1)
    private Integer courseId;
    /**
     * 期次id
     */
    private Integer stageId;
    /**
     * 上课规则
     */
    private ProductClassRuleEnum classRule;

    @DateTimeFormat(pattern="HH:mm:ss")
    private Date beginTime;

    @DateTimeFormat(pattern="HH:mm:ss")
    private Date endTime;

    public Integer getCourseId() {
        return courseId;
    }

    public void setCourseId(Integer courseId) {
        this.courseId = courseId;
    }

    public Integer getStageId() {
        return stageId;
    }

    public void setStageId(Integer stageId) {
        this.stageId = stageId;
    }

    public ProductClassRuleEnum getClassRule() {
        return classRule;
    }

    public void setClassRule(ProductClassRuleEnum classRule) {
        this.classRule = classRule;
    }

    public Date getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(Date beginTime) {
        this.beginTime = beginTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }
}
